{include file="./headStart.tpl"}
{include file="./headEnd.tpl"}
<a href="rAndRList.php">Back</a>
<form name="form" action="{$smarty.server.PHP_SELF}" id="form" method="post">
<table align="center" border="1" cellpadding="2" cellspacing="1" width="40%" >
<tr>
  <td align="center" class="table5" colspan="2">R And R Detail</td>
</tr>
<tr>
  <td align="left" class="table1" >Customer <span style="float:right">:</span> </td>
  <td class="table2">{$companyName}</td>
</tr>
<tr>
  <td align="left" class="table1" >Sr.No. <span style="float:right">:</span> </td>
  <td class="table2">{$srNo}</td>
</tr>
  <td align="left" class="table1" >Date <span style="float:right">:</span> </td>
  <td NOWRAP class="table2">{$companyName}</td>
<tr>
  <td align="left" class="table1" >Address <span style="float:right">:</span> </td>
  <td class="table2">{$address}</td>
</tr>
<tr>
  <td align="left" class="table1">Challan Type <span style="float:right">:</span> </td>
  <td class="table2">{$complaintDate}</td>
</tr>
</table>
<br />
<table align="center" border="1"  cellpadding="1" cellspacing="0">
<tr>
  <td colspan="4"> 
    <table align="center" border="0" id="dataTable" width="100%" cellpadding="1" cellspacing="0">
    <tr>
      <th align="center" rowspan="2" class="table1">SubCategory</th>
      <th align="center" rowspan="2" class="table1">Item</th>
      <th align="center" rowspan="2" class="table1">Quantity</th>
      <th align="center" rowspan="2" class="table1">Complaint Description</th>
    </tr>
      <td></td>
    {section name="sec" loop=$deliveryChalanArray}
    <tr>
      <td class="table3">{$deliveryChalanArray[sec].subCategoryName}</td>
      <td class="table3">{$deliveryChalanArray[sec].itemName}</td>
      <td class="table3" align="Right">{$deliveryChalanArray[sec].quantity}</td>
      <td class="table3" align="Right">{$deliveryChalanArray[sec].complaintDescription}</td>
    </tr>
    {sectionelse}
    <tr><td align="center" colspan="10"><h2><font color="red"><b>{$msg}</b></h2></font></td></tr>
    {/section}
    </table>
  </td>
</tr>
</table>
</form> 
{include file="footer.tpl"}